<template>
  <el-container>
    <!-- <div>特征管理添加</div> -->
    <el-card class="box-card">
      <el-header>特征管理/添加</el-header>
      <el-main>
        <avue-form :option="option" v-model="form"></avue-form>
      </el-main>
      <!-- <el-footer>保存</el-footer> -->
    </el-card>

  </el-container>
</template>
<script>
export default {
  data() {
    return {
      form: {},
      option: {
        labelWidth: 110,
        column: [
          {
            label: '特征名称',
            prop: 'input',
            type: 'input',
            span: 8
          },
          {
            label: '特征类型',
            prop: 'input1',
            span: 8
          },
          {
            label: '是否只读',
            prop: 'radio',
            type: 'radio',
            dicData: [{
              label: '是',
              value: 0
            }, {
              label: '否',
              value: 1
            }],

          },
          {
            label: '水印头像',
            prop: 'imgUrl3',
            type: 'upload',
            accept: 'image/png, image/jpeg',
            limit: 2,
            fileSize: 10000,
            span: 24,
            propsHttp: {
              res: 'data'
            },
            tip: '只能上传jpg/png用户头像，且不超过10M',
            action: 'https://api.avuejs.com/imgupload'
          },
          {
            label: '特征描述',
            prop: 'input',
            type: 'textarea',
            minRows: 3,
            maxRows: 5
          }
        ]
      }
    }
  }
}
</script>

<style>
.text {
  font-size: 14px;
}

.item {
  padding: 18px 0;
}

.box-card {
  width: 100%;
  /* height: 590px; */
}
</style>